//
//  FXXAudioSingleton.h
//  FXX_DZ
//
//  Created by lanou3g on 16/7/9.
//  Copyright © 2016年 MJF. All rights reserved.
//

#import <Foundation/Foundation.h>

#define single_interface(className) \
+ (instancetype)shareAudioPlayerTool;

#define single_implementation(className) \
static className *tool = nil;\
+ (instancetype)shareAudioPlayerTool {\
static dispatch_once_t onceToken;\
dispatch_once(&onceToken, ^{\
    tool = [[className alloc] init];\
});\
return tool;\
}\
+ (instancetype)allocWithZone:(struct _NSZone *)zone {\
static dispatch_once_t onceToken;\
dispatch_once(&onceToken, ^{\
    tool = [super allocWithZone:zone];\
});\
return tool;\
}\
